package fr.inserm.u915.tabixserver;

public class User
	{
	private String login;
	private String sha1sum;
	
	User(String login,String sha1sum)
		{
		this.login=login;
		this.sha1sum=sha1sum;
		}		
	
	public String getLogin()
		{
		return login;
		}
	
	public String getSha1sum()
		{
		return sha1sum;
		}

	@Override
	public int hashCode()
		{
		final int prime = 31;
		int result = 1;
		result = prime * result +  login.hashCode();
		return result;
		}

	@Override
	public boolean equals(Object obj)
		{
		if (this == obj) { return true; }
		if (obj == null) { return false; }
		if (getClass() != obj.getClass()) { return false; }
		User other = (User) obj;
		return login.equals(other.login);
		}
	@Override
	public String toString()
		{
		return this.login;
		}
	}
